home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / spawno30.zip / SPAWNLPO.C < prev    next >
C/C++ Source or Header  |  1990-09-13  |  893b  |  29 lines

  1. /********************************************************************/
  2. /*   SPAWNO v2.0      XMS/disk swapping replacement for spawn...()  */
  3. /*   (c) Copyright 1990 Ralf Brown  All Rights Reserved         */
  4. /*                                    */
  5. /*   May be freely copied provided that this copyright notice is    */
  6. /*   not altered or removed.                        */
  7. /********************************************************************/
  8.  
  9. #include "spawno.h"
  10. #include <errno.h>
  11.  
  12. extern int _Cdecl errno ;
  13. extern int _Cdecl _doserrno ;
  14. char * pascal __spawn_search(const char *) ;
  15.  
  16. int _Cdecl spawnlpo(const char *overlay_path,const char *prog_name,...)
  17. {
  18.    char *prog_path = __spawn_search(prog_name) ;
  19.  
  20.    if (prog_path)
  21.       return __spawnv(overlay_path,prog_path,_va_ptr,0) ;
  22.    else
  23.       {
  24.       errno = ENOENT ;     /* _doserrno already set by __spawn_search() */
  25.       return -1 ;
  26.       }
  27. }
  28.  
  29.